<template>
	<view>
		<u-navbar :custom-back="back" title="规格设置"></u-navbar>
		<view class="head">
			
			<text>优惠券套餐</text>
			
			<view class="radiogroup">
			<u-radio-group v-model="value" size='50' active-color="#000" @change="radioGroupChange">
				<u-radio @change="radioChange" v-for="(item, index) in list" :key="index"
					:class="index==0||2?'radio':''" :name="item.name">
					{{item.name}}
				</u-radio>
			</u-radio-group>
			</view>
			
		</view>
		
		<view class="top">
			<view class="wallet" @click="">
				<image src="../../static/users/paywallet.png" mode=""></image>
				<view class="money">
					余额支付（可用¥100)
				</view> 
			</view>
			
			<view class="xian"></view>
			
			<view class="wallet">
				<image src="../../static/users/payweixin.png" mode=""></image>
				<view class="money">
					微信支付
				</view> 
			</view>
			
		</view>
		 
		<view class="over" @click="over">
			确定支付
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '空白优惠券1张 ¥10',
						disabled: false
					},
					{
						name: '空白优惠券1张 ¥10',
						disabled: false
					},
					{
						name: '空白优惠券1张 ¥10',
						disabled: false
					}, {
						name: '空白优惠券1张 ¥10',
						disabled: false
					}
				],
				value: ""
			}
		},
		methods: {
			over() {
			
			},
			back(){
				uni.redirectTo({
					url:"../activity/activity"
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F4FA;
	}
	.over {
		position: fixed;
		bottom: 50rpx;
		left: 30rpx;
		width: 690rpx;
		height: 100rpx;
		background: #181818;
		box-shadow: 0px 10rpx 40rpx 0px rgba(24, 24, 24, 0.26);
		border-radius: 50rpx;
	
		text-align: center;
		line-height: 100rpx;
	
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
	}
	
	.head {
		padding: 40rpx 30rpx;
		margin: 30rpx;
		width: 690rpx;
		background: #FFFFFF;
		border-radius: 40rpx;
	
		.title {
			margin-bottom: 40rpx;
			width: 630rpx;
			height: 30rpx;
			display: flex;
			flex-wrap: nowrap;
			justify-content: space-between;
	
			.left {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #181818;
			}
	
			.right {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 300;
				color: #181818;
			}
	
		}
	
		text {
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #181818;
		}
	
		.radiogroup {
			// margin-top:30rpx;
			width: 630rpx;
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			.radio {
				margin: 30rpx 0rpx 0 0rpx;

				// font-size: 26rpx;
				// font-family: PingFang SC;
				// font-weight: 300;
				// color: #181818;
			}
		}
	
	}
	
	.top {
		margin: 30rpx;
		width: 690rpx;
		height: 236rpx;
		background: #FFFFFF;
		border-radius: 40rpx;
	
		.wallet {
			width: 690rpx;
			height: 120rpx;
			position: relative;
	
			image {
				margin: 40rpx;
				width: 42rpx;
				height: 38rpx;
			}
	
			.money {
				position: absolute;
				left: 100rpx;
				top: 40rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #000000;
			}
		}
	
		.xian {
			margin-left: 20rpx;
			width: 650rpx;
			height: 1rpx;
			background: #EEEEEE;
		}
	}
</style>
